package com.basics.framework.web.domain;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class BaseEntity extends PageBaseEntity {
    private static final long serialVersionUID = 1L;


    @TableField(
            value = "create_by",
            fill = FieldFill.INSERT
    )
    private String createBy;
    @TableField(
            value = "create_time",
            fill = FieldFill.INSERT
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;
    @TableField(
            value = "update_by",
            fill = FieldFill.INSERT_UPDATE
    )
    private String updateBy;
    @TableField(
            value = "update_time",
            fill = FieldFill.INSERT_UPDATE
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除标识(0正常,1已删除)")
    @TableLogic
    private Integer delFlag=0;

}
